package com.systop.busafter.location.service.impl;

import com.systop.busafter.location.mapper.LocationMapper;
import com.systop.busafter.location.service.LocationService;
import com.systop.commer.pojo.Location;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class LocationServiceImpl implements LocationService {

    @Autowired
    private LocationMapper locationMapper;


    @Override
    public int updatalocation(Location location) {
        return locationMapper.updatalocation(location);
    }

    @Override
    public int uplocationdriver(Location location) {
        return locationMapper.uplocationdriver(location);
    }

    @Override
    public int insertlocation(Location location) {
        return locationMapper.insertlocation( location);
    }

    @Override
    public List<Location> locationListall() {
        return locationMapper.locationListall();
    }

    @Override
    public List<Location> locationIdlist(int location_id) {
        return locationMapper.locationIdlist(location_id);
    }

    @Override
    public Location LocationId(int location_id) {
        return locationMapper.LocationId(location_id);
    }

    @Override
    public int deletelocation(int location_id) {
        return locationMapper.deletelocation( location_id);
    }

    @Override
    public List<Location> locationdriverid(int location_driver_id) {
        return locationMapper.locationdriverid( location_driver_id);
    }

    @Override
    public List<Location> locationdriverids(Location location) {
        return locationMapper.locationdriverids(location);
    }
}
